package com.fowo.api.model.parilist;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 配对列表 导入导出辅助模型 */
@Getter
@Setter
public class ParilistExcelPo {

  @NotBlank(message = "MSKU不能为空")
  @Size(max = 50, message = "MSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*MSKU")
  private String msku;

  @NotNull(message = "店铺不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*店铺")
  private String shopIdShopName;

  @ExcelIgnore
  @ExcelProperty(value = "*店铺")
  private Long shopId;

  @Size(max = 1000, message = "产品名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "产品名称")
  private String productName;

  @NotBlank(message = "sku不能为空")
  @Size(max = 50, message = "sku长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*sku")
  private String sku;

  @NotBlank(message = "平台不能为空")
  @Size(max = 50, message = "平台长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*平台")
  private String platforms;
}
